import React, { Component } from 'react'
import Child1 from './views/Child1'
import Child2 from './views/Child2'
export default class App extends Component {
  constructor(){
    super()
    this.state={
      count:0
    }
  }
  render() {
    console.log('------App的render--------------');
    return (
      <div style={{display:'flex',width:'700px',height:'500px',backgroundColor:'skyblue'}}>
         <button onClick={()=>this.setState({count:this.state.count+1})}>更新App</button>
         <Child1></Child1>
         <Child2></Child2>
      </div>
    )
  }
}
